<?php

class Soeg_array_model extends CI_Model {

	function soeg_2d_array($needle_parameter,$needle_value,$haystack) {
		foreach($haystack as $h){
			if($h[$needle_parameter] == $needle_value){
				return $h;
			}
		}
		return false;
	}

}

?>
